From ea19baed5efdbcec59fec66bd2e8aa1fe08a80f6 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Tue, 18 Dec 2018 22:49:13 -0600 Subject: [PATCH] Default construct to eliminate warning in geojson --- geojson.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson.cc b/geojson.cc index 8fa1ded07..c11e433af 100644 --- a/geojson.cc +++ b/geojson.cc @@ -164,7 +164,7 @@ geojson_read() { file.open(QIODevice::ReadOnly | QIODevice::Text); QString file_content = file.readAll(); file.close(); - QJsonParseError error; + QJsonParseError error{}; QJsonDocument document = QJsonDocument::fromJson(file_content.toUtf8(), &error); QJsonObject rootObject = document.object(); -- 2.30.2